home *** CD-ROM | disk | FTP | other *** search
/ Champak 122 / Vol 122.iso / games / sketchbo.swf / scripts / DefineSprite_422 / frame_1 / DoAction.as
Encoding:
Text File  |  2011-01-06  |  345 b   |  22 lines

  1. this.onEnterFrame = function()
  2. {
  3.    if(hit.hitTest(_root._xmouse,_root._ymouse,true))
  4.    {
  5.       multiplier = -1;
  6.    }
  7.    else
  8.    {
  9.       multiplier = 1;
  10.    }
  11.    if(png._x < -600)
  12.    {
  13.       png._x = -600;
  14.    }
  15.    png._x += 10 * (600 - png._x) / 100 * multiplier;
  16.    if(png._x > 0)
  17.    {
  18.       png._x = 0;
  19.    }
  20. };
  21. count = 1;
  22.